<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Vue</title>
    <script src="vue.js"></script>
    <link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="vue-app">
    <div v-if="inputname" id="inputname">
        <p>请输入被打者的姓名</p>
        姓名：<input type="text" v-model="name">
        <button v-on:click="showinput">确定</button>
    </div>
    <div v-if="imgkill" id="imgkill">
        <img v-bind:src="imgsrc">
        <p v-show="text">{{name}}的血量：{{blood}}</p>
        <button v-on:click="kill" v-show="k_button">打他一下</button>
        <button v-on:click="reset" v-show="r_button">重置</button>
    </div>
</div>

<script src="app.js"></script>
</body>
</html>